{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面</title>
    <script src="{% static 'js/vue.js' %}"></script>
</head>
<body>
{% verbatim %}
<div id="app" @click="click">欢迎登录{{ message }}</div>
{% endverbatim %}
</body>

<script>
    app = new Vue({
        el: '#app',
        data: {
            message: ''
        },
        methods: {
            click: function () {
                this.message = "新的内容"
            }
        }
    })
</script>
</html>